/*
 * AgentRadius.fx
 *
 * Created on 29/Nov/2009, 23:29:00
 */

package mobileipsimulation;

import javafx.scene.shape.Circle;
import javafx.scene.paint.*;
import javafx.scene.input.*;
import agent.Agent;

/**
 * @author chuda
 */

public class AgentRadius extends Circle, AgentInterface{
       public var centX = 0.0;
       public var centY = 0.0;
       public var rad = 0.0;
       public var alpha = 0.0;
       public var agent = null;
       
       override
       function printMe(msg){
            FX.deferAction(function(): Void  {
                println(" xx {msg} ");
            });
       }

       
        init {
            centerX = centX;
            centerY = centY;
            radius = rad;
            fill = Color.color(1, 0, 0, alpha);
//            agent = new Agent("sf");
        }
         function inside(x: Float, y:Float){

         }
         override var onMousePressed = function(e:MouseEvent):Void {
            fill = Color.color(1,0,0, alpha-0.1);
         }
         override var onMouseReleased = function(e:MouseEvent):Void {
            fill = Color.color(1,0,0, alpha);
         }




}
